<?php

/**
 * 主要用户界面框架的组件配置
 */

/*
 * |--------------------------------------------------------------------------
* | 不用拦截的uri
* |--------------------------------------------------------------------------
* |
*/
$config ['no_login'] = array(
    'login',
    'time',
);

/*
 * |--------------------------------------------------------------------------
 * | 菜单权限配置
 * |--------------------------------------------------------------------------
 */
$config ['menu'] = array(
    'home' => array(
        'url' => 'home',
        'icon' => 'fa fa-home',
        'menu_name' => '首页',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'index' => array(
                'menu_name' => '首页',
                'url' => 'home/index',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    )
                )
            ),

        )
    ),
    'member' => array(
        'url' => 'member',
        'icon' => 'fa fa-users',
        'menu_name' => '会员管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'consumer' => array(
                'menu_name' => '消费者管理',
                'url' => 'member/consumer',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                            'save',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                            'save',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete',
                        )
                    ),
                    'found' => array(
                        'name' => '资金调节',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'saveFound',
                        )
                    ),
                    'address' => array(
                        'name' => '收货地址',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'saveAddress',
                        )
                    )
                )
            ),
            'merchant' => array(
                'menu_name' => '商家管理',
                'url' => 'member/merchant',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'details' => array(
                        'name' => '商家管理',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details'
                        )
                    ),
                    'status' => array(
                        'name' => '实名认证',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'shopStatus',
                            'refuse',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                            'save',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                            'save',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete'
                        )
                    ),

                    'found' => array(
                        'name' => '资金调节',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'FoundLogList',
                            'saveFound',
                        )
                    ),
                    'product' => array(
                        'name' => '新增商品',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'addProduct'
                        )
                    ),
                    'category' => array(
                        'name' => '新增商品分类',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'addCategory'
                        )
                    ),
                )
            ),
        )
    ),
//        'dispatchCenter' => array (
//            'url' => 'dispatchCenter',
//            'icon' => 'fa fa-dashboard',
//            'menu_name' => '调度中心 ',
//            'description' => '',
//            'selected' => false,
//        ),
    'deliveryman' => array(
        'url' => '',
        'icon' => 'fa fa-credit-card',
        'menu_name' => '配送管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'overtime_order' => array(
                'menu_name' => '调度中心',
                'url' => 'deliveryman/dispatchCenter',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'getCourier',
                        )
                    ),
                    'allot' => array(
                        'name' => '分配订单',
                        'rely_on' => array(),
                        'uri' => array(
                            'allot',
                        )
                    )
                )
            ),
            'member' => array(
                'menu_name' => '配送员',
                'url' => 'deliveryman/member',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'getAmountList',
                            'details',
                            'postion',
                            'getOrderList'
                        )
                    ),
                    'add' => array(
                        'name' => '添加',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                            'save'
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                            'getInfo',
                            'save'
                        )
                    ),
                    'auth' => array(
                        'name' => '实名认证',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'auth',
                            'getInfo',
                        )
                    ),
                    'status' => array(
                        'name' => '状态',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'changeStatus',
                        )
                    ),
                )
            ),
            'order' => array(
                'menu_name' => '运单管理',
                'url' => 'deliveryman/order',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'details',
                        )
                    )
                )
            ),
            'statistics' => array(
                'menu_name' => '运单统计',
                'url' => 'deliveryman/statistics',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'details',
                        )
                    )
                )
            ),
            'feedback' => array(
                'menu_name' => '意见反馈',
                'url' => 'deliveryman/feedback',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'reply' => array(
                        'name' => '回复',
                        'rely_on' => array(),
                        'uri' => array(
                            'reply',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'delete',
                        )
                    )

                )
            ),
            'withdraw_cash' => array(
                'menu_name' => '提现',
                'url' => 'deliveryman/withdrawCash',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'status' => array(
                        'name' => '审核',
                        'rely_on' => array(),
                        'uri' => array(
                            'changeStatus',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array(),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
            'message' => array(
                'menu_name' => '消息',
                'url' => 'deliveryman/message',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getMemberList',
                            'getList',
                            'history',
                            'getMessageList',
                            'getDetail'
                        )
                    ),
                    'add' => array(
                        'name' => '推送消息',
                        'rely_on' => array(),
                        'uri' => array(
                            'save',
                        )
                    )
                )
            ),
            'comment' => array(
                'menu_name' => '评论',
                'url' => 'deliveryman/comment',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                        )
                    )
                )
            ),
            'agreement' => array(
                'menu_name' => '注册协议',
                'url' => 'deliveryman/agreement',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'save',
                        )
                    ),
                )
            ),
        )
    ),
    'message' => array(
        'url' => 'message',
        'icon' => 'fa fa-comment-o',
        'menu_name' => '消息管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'consumer' => array(
                'menu_name' => '消费者消息',
                'url' => 'message/consumer',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'history',
                            'getList',
                            'getDetail',
                            'getConsumerDetail',
                        )
                    ),
                    'add' => array(
                        'name' => '推送消息',
                        'rely_on' => array(),
                        'uri' => array(
                            'save',
                        )
                    )
                )
            ),
            'merchant' => array(
                'menu_name' => '商家消息',
                'url' => 'message/merchant',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'history',
                            'getList',
                            'getDetail',
                            'getMerchantDetail',
                        )
                    ),
                    'add' => array(
                        'name' => '推送消息',
                        'rely_on' => array(),
                        'uri' => array(
                            'save',
                        )
                    )
                )
            ),

        )
    ),
    'find' => array(
        'url' => 'find',
        'icon' => 'fa fa-bell',
        'menu_name' => '便民服务',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'category' => array(
                'menu_name' => '分类管理',
                'url' => 'find/category',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add'
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit'
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete'
                        )
                    ),
                )
            ),
//                'attribute' => array (
//                    'menu_name' => '特殊属性',
//                    'url' => 'find/attribute',
//                    'selected' => false,
//                    'permissions' => array (
//                        'view' => array (
//                            'name' => '查看',
//                            'rely_on' => array(),
//                            'uri' => array(
//                                'index',
//                                'getList',
//                            )
//                        ),
//                    )
//                ),
            'home' => array(
                'menu_name' => '信息管理',
                'url' => 'find/home',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add'
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit'
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details'
                        )
                    ),
                )
            ),
        )
    ),
    'product' => array(
        'url' => 'member',
        'icon' => 'fa fa-sitemap',
        'menu_name' => '商品管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'category' => array(
                'menu_name' => '分类管理',
                'url' => 'product/category',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                        )
                    ),
                    'details' => array(
                        'name' => '子分类管理',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details',
                            'getInfo',
                            'custom',
                            'deleteCatagory',
                        )
                    ),
                )
            ),
            'home' => array(
                'menu_name' => '商品管理',
                'url' => 'product/home',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete',
                        )
                    ),
                )
            ),
            'comment' => array(
                'menu_name' => '商品评价',
                'url' => 'product/comment',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'rely' => array(
                        'name' => '回复',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'product/comment/saveReply',
                        )
                    ),
                    'image' => array(
                        'name' => '评论图片',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'product/comment/getInfo',
                        )
                    ),
                )
            ),
        )
    ),
    'order' => array(
        'url' => 'member',
        'icon' => 'fa fa-shopping-cart',
        'menu_name' => '订单管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'home' => array(
                'menu_name' => '订单管理',
                'url' => 'order/home',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'deleteOrder',
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array(),
                        'uri' => array(
                            'details',
                        )
                    ),
                    'cancle' => array(
                        'name' => '取消',
                        'rely_on' => array(),
                        'uri' => array(
                            'cancelOrder',
                        )
                    ),
                    'accept' => array(
                        'name' => '接单',
                        'rely_on' => array(),
                        'uri' => array(
                            'accept',
                        )
                    ),
                    'service' => array(
                        'name' => '售后',
                        'rely_on' => array(),
                        'uri' => array(
                            'service',
                        )
                    ),
                    'confirm' => array(
                        'name' => '收货',
                        'rely_on' => array(),
                        'uri' => array(
                            'confirmReceipt',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array(),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
            'service' => array(
                'menu_name' => '售后管理',
                'url' => 'order/service',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array(),
                        'uri' => array(
                            'details',
                        )
                    ),
                    'save' => array(
                        'name' => '退款',
                        'rely_on' => array(),
                        'uri' => array(
                            'saveService',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array(),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
        )
    ),
    'fund' => array(
        'url' => 'fund',
        'icon' => 'fa  fa-credit-card',
        'menu_name' => '资金管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'bank' => array(
                'menu_name' => '银行管理',
                'url' => 'fund/bank',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'fund/bank/index',
                            'fund/bank/getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete',
                        )
                    ),
                )
            ),
            'consumerCash' => array(
                'menu_name' => '消费者提现',
                'url' => 'fund/consumerCash',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'status' => array(
                        'name' => '提现审核',
                        'rely_on' => array(),
                        'uri' => array(
                            'status',
                        )
                    ),
                )
            ),
            'consumerFound' => array(
                'menu_name' => '分享收益',
                'url' => 'fund/consumerFound',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    )
                )
            ),
            'merchantCash' => array(
                'menu_name' => '商家提现',
                'url' => 'fund/merchantCash',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'status' => array(
                        'name' => '提现审核',
                        'rely_on' => array(),
                        'uri' => array(
                            'status',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array(),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),

        )
    ),
    'friends' => array(
        'url' => 'friends',
        'icon' => 'fa fa-list-ul',
        'menu_name' => '发现管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'friends' => array(
                'menu_name' => '发现管理',
                'url' => 'friends/index',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'details' => array(
                        'name' => '详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'details',
                        )
                    ),
                    'status' => array(
                        'name' => '状态',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'changeStatus',
                        )
                    ),
                ),
            ),
        )
    ),
    'statistics' => array(
        'url' => 'member',
        'icon' => 'fa fa-th',
        'menu_name' => '统计管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
//            'sell' => array(
//                'menu_name' => '销售统计',
//                'url' => 'statistics/sell',
//                'selected' => false,
//                'permissions' => array(
//                    'view' => array(
//                        'name' => '查看',
//                        'rely_on' => array(),
//                        'uri' => array(
//                            'index',
//                            'getList',
//                        )
//                    ),
//                    'export' => array(
//                        'name' => '导出',
//                        'rely_on' => array('view'),
//                        'uri' => array(
//                            'export',
//                        )
//                    ),
//                    'saleExport' => array(
//                        'name' => '导出详情',
//                        'rely_on' => array('view'),
//                        'uri' => array(
//                            'saleExport',
//                        )
//                    ),
//                )
//            ),
            'operate' => array(
                'menu_name' => '销售运营表',
                'url' => 'statistics/operate',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                    'saleExport' => array(
                        'name' => '导出详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'saleExport',
                        )
                    ),
                )
            ),
            /*'admin' => array(
                'menu_name' => '运营概览',
                'url' => 'statistics/admin',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'details',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                    'detailExport' => array(
                        'name' => '导出详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'detailExport',
                        )
                    ),
                )
            ),*/
            'bonus' => array(
                'menu_name' => '红包统计',
                'url' => 'statistics/bonus',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
            'postalCard' => array(
                'menu_name' => '包邮卡统计',
                'url' => 'statistics/postalCard',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
            'coupon' => array(
                'menu_name' => '代金券统计',
                'url' => 'statistics/coupon',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            ),
            /*'order' => array(
                'menu_name' => '总览表',
                'url' => 'statistics/order',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                    'detailExport' => array(
                        'name' => '导出详情',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'detailExport',
                        )
                    ),
                )
            ),*/
            'merchant' => array(
                'menu_name' => '商家销量统计',
                'url' => 'statistics/merchant',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                    'product' => array(
                        'name' => '商品销量',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'product',
                            'details',
                            'detailsGetList',
                        )
                    ),
                    'productExport' => array(
                        'name' => '导出商品销量',
                        'rely_on' => array('view','product'),
                        'uri' => array(
                            'productExport',
                        )
                    ),
                    'detailExport' => array(
                        'name' => '导出详情',
                        'rely_on' => array('view','product'),
                        'uri' => array(
                            'detailExport',
                        )
                    ),
                )
            ),
            'region' => array(
                'menu_name' => '人数统计',
                'url' => 'statistics/region',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
            'consumer' => array(
                'menu_name' => '新用户统计',
                'url' => 'statistics/consumer',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'export' => array(
                        'name' => '导出',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'export',
                        )
                    ),
                )
            )
        )
    ),
    'config' => array(
        'url' => 'member',
        'icon' => 'fa fa-asterisk',
        'menu_name' => '平台配置',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'base' => array(
                'menu_name' => '基本配置',
                'url' => 'config/base',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
            'aboutUs' => array(
                'menu_name' => '关于我们',
                'url' => 'config/aboutUs',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'save',
                        )
                    ),
                )
            ),
            'helpUs' => array(
                'menu_name' => '帮助中心',
                'url' => 'config/helpUs',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'save',
                        )
                    ),
                )
            ),
            'explain' => array(
                'menu_name' => '说明',
                'url' => 'config/explain',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'save',
                        )
                    ),
                )
            ),
            'promotion' => array(
                'menu_name' => '红包管理',
                'url' => 'config/promotion',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'details',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array(),
                        'uri' => array(
                            'add'
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'edit'
                        )
                    ),
                    'status' => array(
                        'name' => '发布',
                        'rely_on' => array(),
                        'uri' => array(
                            'changeStatus'
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'deleteBonus'
                        )
                    ),
                )
            ),
            'postalCard' => array(
                'menu_name' => '包邮卡',
                'url' => 'config/postalCard',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                            'details',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array(),
                        'uri' => array(
                            'add'
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'deleteBonus'
                        )
                    ),
                )
            ),
            'share' => array(
                'menu_name' => '分享有礼',
                'url' => 'config/share',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看/编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'save',
                        )
                    ),
                )
            ),
            'ads' => array(
                'menu_name' => '广告管理',
                'url' => 'config/ads',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array(),
                        'uri' => array(
                            'add'
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array(),
                        'uri' => array(
                            'edit'
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'delete'
                        )
                    ),
                )
            ),
            'county' => array(
                'menu_name' => '区域管理员',
                'url' => 'config/county',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '新增',
                        'rely_on' => array(),
                        'uri' => array(
                            'add'
                        )
                    ),
                )
            ),
        )
    ),
    'feedback' => array(
        'url' => 'feedback',
        'icon' => 'fa fa-clipboard',
        'menu_name' => '意见反馈',
        'description' => '',
        'selected' => false,
        'permissions' => array(
            'view' => array(
                'name' => '查看',
                'rely_on' => array(),
                'uri' => array(
                    'index',
                    'getList',
                )
            ),
            'reply' => array(
                'name' => '回复',
                'rely_on' => array('view'),
                'uri' => array(
                    'reply',
                )
            ),
            'delete' => array(
                'name' => '删除',
                'rely_on' => array('view'),
                'uri' => array(
                    'delete',
                )
            ),
        )
    ),
    'dailyMenus' => array(
        'url' => 'dailyMenus',
        'icon' => 'fa fa-clipboard',
        'menu_name' => '每日菜谱',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'dailyMenus' => array(
                'menu_name' => '每日菜谱',
                'url' => 'dailyMenus/index',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '添加',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                            'status',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'delete',
                        )
                    ),
                )
            ),
        ),
    ),
    'setting' => array(
        'url' => '',
        'icon' => 'fa fa-gears',
        'menu_name' => '设置',
        'description' => '',
        'selected' => false,
        'sub_menu' => array(
            'user' => array(
                'menu_name' => '管理员',
                'url' => 'setting/user',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'delete' => array(
                        'name' => '删除',
                        'rely_on' => array(),
                        'uri' => array(
                            'delete',
                        )
                    ),
                )
            ),
            'role' => array(
                'menu_name' => '角色管理',
                'url' => 'setting/role',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                    'add' => array(
                        'name' => '添加',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'add',
                        )
                    ),
                    'edit' => array(
                        'name' => '编辑',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'edit',
                        )
                    ),
                    'status' => array(
                        'name' => '状态',
                        'rely_on' => array('view'),
                        'uri' => array(
                            'changeStatus',
                        )
                    ),
                )
            ),
//						'advert' => array (
//								'menu_name' => '广告配置',
//								'url' => 'setting/advert',
//								'selected' => false,
//								'permissions' => array (
//										'view' => array (
//												'name' => '查看',
//												'rely_on' => array(),
//												'uri' => array(
//														'index',
//														'getList',
//												)
//										),
//								)
//						),
//                        'shipping' => array (
//                        'menu_name' => '配送方式',
//                        'url' => 'setting/shipping/area',
//                        'selected' => false,
//                        'permissions' => array (
//                            'view' => array (
//                                'name' => '查看',
//                                'rely_on' => array(),
//                                'uri' => array(
//                                    'index',
//                                    'getList',
//                                )
//                            ),
//                        )
//                    ),
            'config' => array(
                'menu_name' => '配送参数',
                'url' => 'setting/config',
                'selected' => false,
                'permissions' => array(
                    'view' => array(
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                        )
                    )
                )
            )
        )
    )
);



 
 